import config from "@/config"
import http from "@/utils/request"

export default {
	getAccount: {
		url: `${config.API_URL}/cms/theatre/account/list`,
		name: "账号列表",
		get: async function(params={}){
			return await http.get(this.url, params);
		}
	},
	getAccountDetail: {
		url: `${config.API_URL}/cms/theatre/account/info/`,
		name: "获取员工详情",
		get: async function(params){
			return await http.get(this.url + params);
		}
	},
	uploadInfo: {
		url: `${config.API_URL}/cms/theatre/account/save`,
		name: "上传员工数据",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
  delAccount: {
    url: `${config.API_URL}/cms/theatre/account/del/`,
    name: "删除Account数据",
    delete: async function(params){
        return await http.delete(this.url+params);
    }
  }
}
